/**
 * Created by arons on 16/6/30.
 */

123..toString();
(123).toString();

123.0.toString()

var floor_1_2 = Math.floor(1.2);
console.log(floor_1_2)

var parseResult = Number.parseFloat('1.23213').toFixed(2);
console.log(parseResult);

var Student = {
    name: 'Robot',
    height: 1.2,
    run: function () {
        console.log(this.name + ' is running...');
    }
};

var xiaoming = {
    name: '小明'
};

xiaoming.__proto__ = Student;
xiaoming.run();

var Bird = {
    fly: function () {
        console.log(this.name + ' is flying...');
    }
};

//xiaoming.__proto__ = Bird;
//xiaoming.fly();
//
//var cons = xiaoming.constructor;
//var protIsEqual = (cons === Bird.prototype.constructor);
//console.log(cons);
//console.log(protIsEqual);



